package bairui.international.controller.ticket.offset;

/**
 *
 */
@SuppressWarnings("serial")
abstract 
public class Module_Info_OutputModel
 extends bairui.international.model.domain.jpa.TB_ElectronicTicketOrder
{

	/**
	 * 构造函数
	 */
	@lombok.Getter @com.fasterxml.jackson.annotation.JsonIgnore
	private bairui.international.model.domain.jpa.TB_ElectronicTicketOrder _origin;

	public Module_Info_OutputModel(
		bairui.international.model.domain.jpa.TB_ElectronicTicketOrder bean
	) {
		this._origin = bean;
		if(null != bean){
			this.setId(bean.getId());
			this.setNumber(bean.getNumber());
			this.setName(bean.getName());
			this.setPrice(bean.getPrice());
			this.setType(bean.getType());
			this.setCount(bean.getCount());
			this.setOneuseFlag(bean.getOneuseFlag());
			this.setGiveFlag(bean.getGiveFlag());
			this.setApplyDate(bean.getApplyDate());
			this.setState(bean.getState());
			this.setExpiryDate(bean.getExpiryDate());
			this.setComment(bean.getComment());
		}
		/* 附加属性赋值前 */
		assign_before();
		/* 附加属性赋值 */
		this.setRequester(this.assignRequester());
	}
	

	/**
	 * 非继承属性
	 */
	abstract protected void assign_before();

	/** 申请人 */
	@lombok.Getter @lombok.Setter 
	private String requester;
	/** 赋值申请人 */
	abstract protected String assignRequester();

	/**
	 * json忽略注解覆盖继承属性
	 */

	/**
	 * 对象转字符串输出
	 */

}
